<?php foreach($enTetes as $enTete): ?>
<table class="liste">
    <thead>
	<tr>
	    <th colspan="5"><?php echo $enTete->filiereIntitule . ' - ' . $enTete->specialiteIntitule ?></th>
	</tr>
	<tr>
	    <th>Date de début</th>
	    <th>Date de fin</th>
	    <th>Visible</th>
	    <th colspan="2"></th>
	</tr>
    </thead>
    <tbody>
	    <?php foreach( $promotions[$enTete->specialiteId] as $promotion): ?>
	<tr>
	    <td><?php echo Date::fromSGBD($promotion->date_debut)->toFormulaire() ?></td>
	    <td><?php echo Date::fromSGBD($promotion->date_fin)->toFormulaire() ?></td>
	    <td><?php if ($promotion->visible == 1){ echo 'oui'; }else{ echo 'non'; } ?></td>
	    <td class="icon"><a class="edit" title="Modifier la promotion" href="<?php echo shRequest::link('administration','promotion','edit',$promotion->id)?>"></a></td>
	    <td class="icon"><a class="delete" title="Supprime la promotion" href="<?php echo shRequest::link('administration','promotion','delete',$promotion->id)?>"></a></td>
	</tr>
	    <?php endforeach ?>
    </tbody>
</table>
<?php endforeach ?>